package com.yinhd.study.designPatterns.Interviewer.course;

/**
 * @program: study
 * @description:
 * @Author: chengl
 * @create: 2022-02-08 11:19
 **/
public class Boss implements IVisitor {
    @Override
    public void visit(FreeCourse freeCourse) {
        System.out.println("boss " + freeCourse.getName());
    }

    @Override
    public void visit(PracticeCourse practiceCourse) {
        System.out.println("boss " + practiceCourse.getName());
    }
}
